﻿using System.Security.Cryptography;
using System.Text;

namespace K9Nano.Utils;

public static class HashUtils
{
    public static string Md5(string text)
    {
        var bytes = Encoding.UTF8.GetBytes(text);
        var hashBytes = MD5.HashData(bytes);
        var hash = Convert.ToHexString(hashBytes);
        return hash;
    }
}
